package Teamdomain;
import TeamService.Status;
/**
 * @program: Demo2
 * @description:
 * @author: yan guang
 * @create: 2020-04-22 09:47
 */
public class Progammer extends Employee {
    private int emberId;
    private Status status=new Status("FREE");
    private Equipment equipment;

    public Progammer(int id, String name, int age, double salary,Equipment equipment) {
        super(id, name, age, salary);
        this.equipment = equipment;
    }

    public int getEmberId() {
        return emberId;
    }

    public void setEmberId(int emberId) {
        this.emberId = emberId;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Equipment getEquipment() {
        return equipment;
    }

    public void setEquipment(Equipment equipment) {
        this.equipment = equipment;
    }

    @Override
    public String toString() {
        return Detil()+status+getEquipment();
    }
}
